<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h2> {{person.name}}---{{person.age}} </h2>
        <h3> {{person.fav}}</h3>
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ul>
        <h3>{{msg}}</h3>
        <div v-text="msg"></div>
        <div v-text="person.name"></div>
        <div v-html='htmlStr'></div>
        <input type='text' v-model = 'msg'>
        <button v-on:click = 'handlerClick'>可控制点击</button>
        <button @click = 'handlerClick'>可控制点击</button>
    </div>
    <!-- <script src="../../vue源码/vue.js源码文件.js"></script> -->
    <script src="Observer.js"></script>
    <script src="LIUVue.js"></script>
    <script>
        // let vm = new LIUVue({
            console.log(IntersectionObserver)
        let vm = new LIUVue({
            el:"#app",
            data:{
                person:{
                    name:'小马哥',
                    age:18,
                    fav:'姑娘'
                },
                msg:'学习MVVM实现原理',
                htmlStr:'<b>好好学习，天天向上</b>'
            },
            methods: {
                handlerClick(){
                    console.log(this)
                    this.person.name = "刘大仙"
                }
            },
        })
    </script>
</body>
</html>